from django.contrib import admin
from models import Lesson, Document, Drill, Evaluator, Question, User, QuestionEvent

class DrillAdmin(admin.ModelAdmin):
  list_display = ['sname', 'name']

class LessonAdmin(admin.ModelAdmin):
  list_display = ['sname', 'name', 'shortdescr']

class DocumentAdmin(admin.ModelAdmin):
  list_display = ['sname', 'name', 'lesson']

admin.site.register(Lesson, LessonAdmin)
admin.site.register(Document, DocumentAdmin)
admin.site.register(Drill, DrillAdmin)
admin.site.register(Evaluator)
admin.site.register(Question)
admin.site.register(User)
admin.site.register(QuestionEvent)

